﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Shop.WebApp
{
    public partial class 页面生命周期 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string astr = Server.UrlEncode(Request.Form["__EVENTVALIDATION"].ToString());
            Response.Write(astr);
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            DropDownList1.Items.Add(new ListItem("1", "1"));
            
        }
    }
}
